package com.ruoyi.system.WebController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.system.domain.ByMyStandard;
import com.ruoyi.system.service.IByMyStandardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * StandardController
 *
 * @author ruoyi
 * @date 2024-02-01
 */
@RestController
@RequestMapping("/byWeb/mySandard")
public class WebByMyStandardController extends BaseController {

    @Autowired
    private IByMyStandardService byMyStandardService;

    /**
     * 查询MyStandard列表
     */
    @GetMapping("/list")
    public TableDataInfo list(ByMyStandard byMyStandard)
    {
        startPage();
        List<ByMyStandard> list = byMyStandardService.selectByMyStandardList(byMyStandard);
        return getDataTable(list);
    }


}
